<div class="yesnomaybearea bgcolor-main">
        <div style="" id="selectyesnomaybe">
            <div class="yesnomaybelefttest">
                <h1>Today’s 1st Match</h1>
                <p class="todaysmatchesp">Is ADAMFRINO a possible Match? Click a button to find out.</p>
            </div>
                <div class="yesnomayberighttest"> 
                    <a title="No" class="nobutton" href="javascript:;"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/noxbutton.png"></a> 
                    <a title="Yes" class="yesbutton" href="javascript:;"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/yescheckbutton.png">
                    </a> 
                </div>
        </div>
        <div style="display:none;" id="messageyesnomaybe">
            <div class="matchesmessage">
       
                <h1>Today’s 1st Match</h1>
                <p class="todaysmatchesp">Is ADAMFRINO a possible Match? You think so! You said Yes.</p>
                <p class="fourteen">Say hello and share what you like about ADAMFRINO’s profile.</p>
        
                <textarea rows="" cols="" name="" id="todaysmatchmessagebody"></textarea>
        
                <div class="matchesmessagebottom">
                    <a title="Send Message" class="button_style" id="todaysmatchessendmessagebutton" href="javascript:;">Send Message</a>
                    <a class="linkfix" href="/v3/profile/todaysmatches?current=2">Show me my next match</a></div>
            </div>
        </div>
        <div style="display:none;" id="todaysmatchpicked">
            <div class="yesnomaybelefttest">
                <h1>Today’s 1st Match</h1>
                <p class="todaysmatchesp">Is ADAMFRINO a possible Match? You said no. Did you change your mind?
                    <a class="linkfix" href="/v3/profile/todaysmatches?current=2">Show me my next match</a></p>
                 </div>
                
             
           
        </div>
            <p class="clearfix">&nbsp;</p>
    </div>

<input type="hidden" id="SuggestedMemberTodaysMatch" value="3AECF982CC89DC2D">

<input type="hidden" id="SuggestedMemberUsernameTodaysMatch" value="SUITANDTIEGUY26">
<input type="hidden" id="CurrentTodaysMatch" value="1">

<script>
    var PeopleMedia = PeopleMedia || {};
    PeopleMedia.TodaysMatches = {
        IsRedirecting: false,
        SendSelection: function (selection) {
            var startTime = new Date().getTime();
            var url = '/v3/todaysmatches/SelectMatchType';
            var timeoutValue = 30000;
            var selectionData = {
                "matchAction": selection,
                "suggestedMember": "3AECF982CC89DC2D",
                "suggestedMemberUsername": "SUITANDTIEGUY26",
                "current": "1",
                "messageBody": ""
            };
            $jq.ajax({
                type: "POST",
                url: url,
                data: JSON.stringify(selectionData),
                dataType: "json",
                contentType: "application/json; charset=utf-8",
                success: function (data) {
                    if (data.redirect) {
                        PeopleMedia.TodaysMatches.IsRedirecting = true;
                        window.location.href = data.redirect;
                    } else {
                        if (selection === '1') {
                            $jq('#messageyesnomaybe').show();
                            $jq('#selectyesnomaybe').hide();
                            $jq('#todaysmatchpicked').hide();
                        }
                    }
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    if ($jq &amp;&amp; $jq.mobile &amp;&amp; PeopleMedia.TodaysMatches.IsRedirecting) {
                        return;
                    }
                    if (errorThrown === 'timeout' || (jqXHR.readyState !== 0 &amp;&amp; jqXHR.status !== 0)) {
                        var endTime = new Date().getTime();
                        var duration = (endTime - startTime);
                        PeopleMedia.Popups.ShowGenericMessage(PeopleMedia.Popups.AjaxErrorMessage());
                        PeopleMedia.Logger.LogAjaxErrorXHR("Ajax request failure", url, { method: "PeopleMedia.TodaysMatches.SendSelection", duration: duration }, jqXHR, textStatus, errorThrown, function() {
                        });
                    }
                },
                async: true,
                cache: false,
                timeout: timeoutValue,
                suppressErrors: true
            });
            return false;
        },
        SendMessage: function (selection) {
            var messageText = $jq("#todaysmatchmessagebody").val();
            if (messageText != '') {
                var startTime = new Date().getTime();
                var url = '/v3/todaysmatches/sendmessage';
                var timeoutValue = 30000;
                var messageData = {
                    "SkipCSSVerif": "HTMLEditor",
                    "matchAction": "1",
                    "suggestedMember": "3AECF982CC89DC2D",
                    "suggestedMemberUsername": "SUITANDTIEGUY26",
                    "current": "1",
                    "messageBody": messageText
                };
                $jq.ajax({
                    type: "POST",
                    url: url,
                    data: JSON.stringify(messageData),
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    success: function (data) {
                        if (data.redirect) {
                            window.location.href = data.redirect;
                        } else {
                            $jq('#todaysmatchmessagebody').html(data.html);
                        }
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        if (errorThrown === 'timeout' || (jqXHR.readyState !== 0 &amp;&amp; jqXHR.status !== 0)) {
                            var endTime = new Date().getTime();
                            var duration = (endTime - startTime);
                            PeopleMedia.Popups.ShowGenericMessage(PeopleMedia.Popups.AjaxErrorMessage());
                            PeopleMedia.Logger.LogAjaxErrorXHR("Ajax request failure", url, { method: "PeopleMedia.TodaysMatches.SendMessage", duration: duration }, jqXHR, textStatus, errorThrown, function() {
                            });
                        }
                    },
                    async: true,
                    cache: false,
                    timeout: timeoutValue,
                    suppressErrors: true
                });
            } else {
                PeopleMedia.Popups.ShowGenericMessage("Write a message now to SUITANDTIEGUY26 then click Send");
            }
            return false;
        },

        Initialize: function () {
            $jq(".button_style_green, .yesbutton").click(function () {
                PeopleMedia.TodaysMatches.SendSelection('1');
                return false;
            });
            $jq(".button_style_yellow, .maybetext").click(function () {
                PeopleMedia.TodaysMatches.SendSelection('2');
                return false;
            });
            $jq(".button_style_red, .nobutton").click(function () {
                PeopleMedia.TodaysMatches.SendSelection('0');
                return false;
            });
            $jq("#todaysmatchessendmessagebutton").click(function () {
                PeopleMedia.TodaysMatches.SendMessage('1');
                return false;
            });
            return false;
        }
    };

    $jq(document).ready(function () {
        PeopleMedia.TodaysMatches.Initialize();
    });
</script>



<?php 
if (!empty($models)) {
    ?>


<div id="profilecontenttop">
    <div id="profilecontenttopleft">
        <div id="profilepicture">
            <div id="profileoverlayplace">
                
                <div style="display:none;" id="showBdayOverlay">False</div>
                        <div id="profileoverlay">
                            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/polaroidicon.png">
                            <p><a href="#tab=photos&amp;zoomPhoto=0">7 more photos</a></p>
                        </div>
            </div>
            <a href="#tab=photos&amp;zoomPhoto=7"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/uploads/photos/thumbs/thumb_<?php echo $models->userPhoto->link_img;?>"></a>
        </div>
        <div id="profiletopbtns">
            <a style="" title="Save as Favorite" class="button_style SaveToFavorites" href="javascript:;">
                <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/staricon.png">Save</a>
            <a style="display:none;" title="Saved as Favorite" class="button_style favoriteclicked RemoveFromFavorites" href="javascript:;">
                <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/yellowstaricon.png">Save</a>
        </div>
        

    </div>

    <div id="profilecontenttopright">
        <p class="color-alt" id="profiletitle">
            <?php echo $models->username; ?> </p>
        <a title="Save as Favorite" href="javascript:;" style="" class="SaveToFavorites">
            <img border="0" class="favoriteicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoriteicon.png"><p class="profilesavefavtext">Save as Favorite</p></a> 
        <a title="Saved as Favorite" style="display:none;" class="RemoveFromFavorites" href="javascript:;">
            <img border="0" class="favoriteicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoritedicon.png"></a>
        

        <div id="profilebottomrow">
            <div id="profileinfo">
                <p>
                    
                    <?php
                                    $birthDate = $models->profile->birthdate;
                                    $dob = date("Y-m-d", strtotime($birthDate));

                                    $dobObject = new DateTime($dob);
                                    $nowObject = new DateTime();

                                    $diff = $dobObject->diff($nowObject);

                                    echo $diff->y;
                                    ?>
                    
                    | <?php echo $models->profile->state; ?>, <?php echo $models->profile->country; ?><br>
                    <?php echo $models->profile->gender; ?> |  <?php echo $models->profile->tall.' cm'; ?>  | Last Activity: Yesterday
                     </p>
            </div>
                <div id="profilewarnings">
                    <a onclick="PeopleMedia.Popups.BlockUser('3AECF982CC89DC2D','SuitandTieGuy26', 'True'); PeopleMedia.ReloadAds();" title="Block Member" href="javascript:;">
                        <img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/blockusericon.png"></a>
                    <a onclick="PeopleMedia.Profile.ReportConcernPopup('3AECF982CC89DC2D','SuitandTieGuy26', 'True');" title="Report a Concern" id="ReportConcernLink" href="javascript:;">
                        <img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/concernicon.png"></a>
                    <a onclick="PeopleMedia.Profile.ShareProfilePopup('3AECF982CC89DC2D','SuitandTieGuy26');" title="Send to a Friend" id="SendToFriendLink" href="javascript:;">
                        <img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/sendtofriendicon.png"></a>
                </div>

        </div>
            <div class="lookingforanswer">I'm looking for a serious relationship or a casual relationship.</div>
        <div id="profilewritemessage">
            <textarea rows="" cols="" name="" id="ProfileInlineMessage" class="ProfileWriteMessageTextArea">Say Hello...</textarea>
        </div>
        <div id="sendmessagebtn">
            <a title="Send" class="button_style" id="SendMessageButtonLink" href="javascript:;"><img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png">Send</a>
        </div>
    </div>
</div>


<div class="fourteen" id="profilecontentmiddle">
    <a href="#tab=about"><div title="About" class="profiletabon" id="profileaboutbtn">
        <p>
            About</p>
    </div></a>
    <a href="#tab=photos&amp;zoomPhoto=0"><div title="Photos" class="profiletaboff" id="profilephotosbtn">
        <p>Photos</p>
    </div></a>
    <a href="#tab=history"><div title="Our History" class="profiletaboff" id="profileourhistorybtn">
        <p>Our History</p>
    </div></a>
</div>

<div id="profilecontentbottom">
    <div id="profileourhistoryarea" style="display: none;">
        <div id="ourhistorycontentarea">
        Loading...
        </div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div id="profilephotosarea" style="display: none;">
        <div id="photoscontentarea">Loading...</div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div id="profileaboutarea">
        
<div id="astrologerContent">
    </div>
<div id="profileaboutleft">
    
                    
    <div id="AboutMyMatch" style="display:none;">
    </div>
    
    <div id="AboutMe">
                <div class="abouttext">
                    <p class="abouttextleft">
                        Occupation:</p>
                    <p class="abouttextright">
                        Sales / Marketing</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Education:</p>
                    <p class="abouttextright">
                        Degree</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                    <div class="aboutmeline"></div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Religion:</p>
                    <p class="abouttextright">
                        Catholic</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Political Affiliation:</p>
                    <p class="abouttextright">
                        Middle of the Road</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Where I<br> grew up:</p>
                    <p class="abouttextright">
                        Farmingville NY, USA</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                    <div class="aboutmeline"></div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Height:</p>
                    <p class="abouttextright">
                        5' 8"</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Body:</p>
                    <p class="abouttextright">
                        Heavyset</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Hair:</p>
                    <p class="abouttextright">
                        Black</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Eyes:</p>
                    <p class="abouttextright">
                        Brown</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Ethnicity:</p>
                    <p class="abouttextright">
                        White / Caucasian</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                    <div class="aboutmeline"></div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Status:</p>
                    <p class="abouttextright">
                        Never Married</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Children:</p>
                    <p class="abouttextright">
                        Has no children</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Pet(s):</p>
                    <p class="abouttextright">
                        Cats</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext astrology">
                    <p class="abouttextleft">
                        Sign:</p>
                    <p class="abouttextright">
                        <a href="javascript:void(0)" onclick="PeopleMedia.Profile.showZodiacPopUp('3AECF982CC89DC2D', 'ProfileOther', 'false', '', 'TodaysMatches', '1')">Scorpio</a>&nbsp;
                            /&nbsp;<a href="javascript:void(0)" onclick="PeopleMedia.Profile.showZodiacPopUp('3AECF982CC89DC2D', 'Compatibility', 'false', '', 'TodaysMatches', '1')">Compatibility</a>
                    </p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="abouttext">
                    <p class="abouttextleft">
                        Smoking:</p>
                    <p class="abouttextright">
                        Non-Smoker</p>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
    </div>

        <div class="aboutmeline"></div>
    <div class="abouttext">
        <p class="abouttextleftbottom">Interested?</p>
        <a href="javascript:PeopleMedia.Profile.messageFocus();"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png" class="abouttextimage"></a>
        <p class="abouttextrightbottom"><a href="javascript:PeopleMedia.Profile.messageFocus();">Send him a message</a></p>
        <p class="clearfix">&nbsp;</p>
    </div>
</div>
<div id="profileaboutright">
            <h2 class="profileaboutheadline">
                A little about me...</h2>
            <p class="profileaboutp">
                I am a young working professional who is climbing the corporate ladder. I am over the club scene, and am looking to meet a girl i can have an intellectual conversation with. If you are looking for a gentleman ladies, I'm your guy.<br><br>I consider myself to be extremely loyal and trustoworthy, and I expect the same. I tend to be a little old fashioned at times, especially when it comes to fashion lol. I wear a suit and tie at work, and I believe that my generation has trouble with the art of dressing up.<br><br>I cherish my family more than anything else. I was raised in a household in which family came first, and I hope to pass those values along someday.</p>    
            <h2 class="profileaboutheadline">
                About the one I'm looking for...</h2>
            <p class="profileaboutp">
                I am looking for a girl who is funny, smart, has a great appetite, and who puts family first. She will be career driven, and be ambitious in life, but also likes to relax and chill out.</p>    
            <h2 class="profileaboutheadline">
                I'd just like to add...</h2>
            <p class="profileaboutp">
                I am a HUGE car guy, so it would be cool if she is into cars as well, but also, willing to learn is good as well.</p>    
    <p class="clearfix">
        &nbsp;</p>
        <div id="profilepersonalityarea">
            <h2 class="profileaboutheadline">
                Personality Questions:
            </h2>
                <p>
                    Q. Do you enjoy cooking?</p>
                <p class="profileabouta color-main">
                    A. I really enjoy cooking</p>
                <p>
                    Q. How patient do you consider yourself?</p>
                <p class="profileabouta color-main">
                    A. Very patient</p>
                <p>
                    Q. Are you romantic?</p>
                <p class="profileabouta color-main">
                    A. Quite romantic</p>
                <p>
                    Q. How punctual are you typically?</p>
                <p class="profileabouta color-main">
                    A. Often early</p>
                <p>
                    Q. Do you enjoy going to the movies?</p>
                <p class="profileabouta color-main">
                    A. Love it</p>
                <p>
                    Q. How much do you enjoy going to live theatre?</p>
                <p class="profileabouta color-main">
                    A. Enjoy it</p>
                <p>
                    Q. How much do you like reading?</p>
                <p class="profileabouta color-main">
                    A. There's nothing better</p>
        </div>
        <div id="profileinterestarea" class="horizontal">
            <h2 class="profileaboutheadline">
                My Top Interests:</h2>
            <p class="clearfix">
                &nbsp;</p>
                <div class="interestarearepeat">
                    <div class="profileinterestleft">
                        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/news.jpg" class="interestborder">
                        <p class="interestcategory color-main">
                            News and Politics</p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                    <div class="profileinterestright">
                        <p class="profileaboutp">
                        
                    </p></div>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="interestarearepeat">
                    <div class="profileinterestleft">
                        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/arts.jpg" class="interestborder">
                        <p class="interestcategory color-main">
                            Arts</p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                    <div class="profileinterestright">
                        <p class="profileaboutp">
                        
                    </p></div>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
                <div class="interestarearepeat">
                    <div class="profileinterestleft">
                        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/technology.jpg" class="interestborder">
                        <p class="interestcategory color-main">
                            Technology</p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                    <div class="profileinterestright">
                        <p class="profileaboutp">
                        
                    </p></div>
                    <p class="clearfix">
                        &nbsp;</p>
                </div>
        </div>
        <div id="profilemessageideasarea">
            <h2 class="profileaboutheadline">Message Starter Ideas</h2>
            <p>This member would like to know one or more of the following about you:</p>
                <p>Q. How would you describe your personal fashion style?</p>
                <p>Q. Do you like to read?  What is your favorite book?</p>
                <p>Q. Is family important to you?  Describe your relationship with your family?</p>
                <p>Q. Describe four of your main goals in life.</p>
            <div class="sendmessagelink"> <a href="javascript:PeopleMedia.Profile.messageFocus();"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png"></a>
                <p><a href="javascript:PeopleMedia.Profile.messageFocus();">Send a message now</a></p>
            </div>
        </div>

</div>

    </div>
</div>

<?php 
}
    ?>
